// All source files and native code may not be transmitted, reproduced, distributed, 
// or commercially exploited in any way without the express written consent of Sybex Inc.

//MOST THINGS THAT CHANGE

//CHAPTER TITLE
var TestChapter:String = "Chapter 9";

var user_Correct:Array = new Array("AC","D","AB","AC","BD","C","C","B","AB","C","A","B","B","D","D","B","D","D","A","AE");

total = user_Correct.length;
_root.countdown = false;
// set to false to make the timer count up //
_root.hour = 0;
// number of hours at start//
_root.minute = 0;
// number of minutes at start//
//DON'T FORGET THE QUESTIONS AT THE END
//END OF MOST THINGS THAT CHANGE
//
//
//The following is used in the timer mc for adjusting the clock.
_root.delay = false;
_root.wait = 60;
//wait in seconds
_root.lastTime = Math.floor(getTimer()/1000);
i = 1;
totalCorrect = 0;
totalWrong = 0;
QCounter.QTotal.text = total;
Test_Title.text = TestChapter;
var finalCorrect:Number;
var userResponse:Array = new Array(total);
var markResponse:Array = new Array(total);
user_responseA = "";
user_responseB = "";
user_responseC = "";
user_responseD = "";
user_responseE = "";
user_responseF = "";
user_responseG = "";
user_responseH = "";
user_responseI = "";
user_responseJ = "";
user_responseK = "";
user_responseL = "";
user_responseM = "";
user_responseN = "";
_root.review = false;

function initialize() {
	_root.review = false;
	for (j=0; j<total; j++) {
		userResponse[j] = "";
		markResponse[j] = "";
	}
	
}

function showMatch() {
	set("user_response"+i, user_responseA+user_responseB+user_responseC+user_responseD+user_responseE+user_responseF+user_responseG+user_responseH+user_responseI+user_responseJ+user_responseK+user_responseL+user_responseM+user_responseN);
	userResponse[i-1] = user_responseA+user_responseB+user_responseC+user_responseD+user_responseE+user_responseF+user_responseG+user_responseH+user_responseI+user_responseJ+user_responseK+user_responseL+user_responseM+user_responseN;
}

// display multiple choice user_response answer function
function display() {
	set("user_response"+i, user_responseA+user_responseB+user_responseC+user_responseD+user_responseE+user_responseF+user_responseG+user_responseH+user_responseI+user_responseJ+user_responseK+user_responseL+user_responseM+user_responseN);
	userResponse[i-1] = user_responseA+user_responseB+user_responseC+user_responseD+user_responseE+user_responseF+user_responseG+user_responseH+user_responseI+user_responseJ+user_responseK+user_responseL+user_responseM+user_responseN;

	//**NEW
	response.text = userResponse[i-1];
	
}

//radio button function
function answer(choice) {
	set("user_response"+i, choice);
	userResponse[i-1] = choice;
	
	//**NEW
	response.text = userResponse[i-1];	
}

// marker button fuction
function mark(choice) {
	_root["mark"+i] = choice;
	markResponse[i-1] = choice;
}

// display fill in the blank by user.
function submit(userInput) {
	_root["user_response"+i] = userInput;
}

function reset() {
	_root["user_response"+i] = "";
}

function UnloadReview() {
	//ReviewLinks.unloadMovie();
}


function LayoutQuestion() {

	qname = "q"+(_root._currentframe-1);
	
	markname = "m"+(_root._currentframe-1);
	
	_root.loadQuestion(_root._currentframe-1);	
	
	_root.createEmptyMovieClip("container", 1);

	_root.attachMovie("Marker_mc", markname, 2, {_x:65.4, _y:55.4});
	
	if (_root.question_type == "2R") { this.attachMovie("2R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "3R") { this.attachMovie("3R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "3MC") { this.attachMovie("3MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "4R") { this.attachMovie("4R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "4MC") { this.attachMovie("4MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "5R") { this.attachMovie("5R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "5MC") { this.attachMovie("5MC", qname, 1, {_x:24, _y:165}); }	
	if (_root.question_type == "6R") { this.attachMovie("6R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "6MC") { this.attachMovie("6MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "7R") { this.attachMovie("7R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "7MC") { this.attachMovie("7MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "8R") { this.attachMovie("8R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "8MC") { this.attachMovie("8MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "9R") { this.attachMovie("9R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "9MC") { this.attachMovie("9MC", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "10R") { this.attachMovie("10R", qname, 1, {_x:24, _y:165}); }
	if (_root.question_type == "10MC") { this.attachMovie("10MC", qname, 1, {_x:24, _y:165}); }


	if (_root.review == false) { _root.attachMovie("show_answer", "show_answer1", 3, {_x:72, _y:418}); }
	if (_root.review == true)  { _root.attachMovie("show_review", "show_review1", 3, {_x:72, _y:418}); }
        if (_root.figure_flag == "True") { _root.attachMovie("show_figure", "show_figure1", 6, {_x:72, _y:418}); }
        if (_root.figure_flag == "False") { _root.createEmptyMovieClip("container", 6); }        

	question_scroll._visible = (question_text.maxscroll > 1);
	question_scroll.setSize(85,16); 
	
	//**NEW
	response.text = userResponse[i-1];
}

function loadQuestion(inNum:Number) {
	var cur:Number = inNum;
	//This corrects for the first frame holding all functions
	//QUESTIONS AND ANSWERS CAN ACCEPT HTML FORMATTING!!!
	//EACH QUESTION SHOULD BE FORMATTED SIMILAR TO THE FOLLOWING.

	switch (cur) {
case 1 :
_root.question = "A main objective of a wireless LAN site survey is to determine __________ and ________. (Choose the best two options.)";
_root.answerA = "Areas of RF interference";
_root.answerB = "Applications to be used";
_root.answerC = "Access point locations";
_root.answerD = "Wiring closet locations";
_root.answerE = "Security implementations";
_root.correct = "AC";
_root.explanation = "The main objectives of a wireless site survey are to determine areas of RF interference and RF coverage as well as locations of access points and other infrastructure devices. The applications used have more to do with capacity planning. Wiring closet locations and security implantations are factors that need to be taken into consideration but are not the main objectives.";
_root.figure_flag = "False";
_root.question_type = "5MC";
break;

case 2 :
_root.question = "You are a network engineer tasked with performing a site survey for a multiple channel architecture (MCA) system in a three-story building. Which characteristic must be considered while performing a site survey?";
_root.answerA = "All omnidirectional antennas should be vertically polarized.";
_root.answerB = "Multiple floors require the same channel.";
_root.answerC = "Each floor should be treated as an individual site survey.";
_root.answerD = "The channel plan should take all three floors into consideration.";
_root.correct = "D";
_root.explanation = "Because of RF propagation, site surveys are really three-dimensional. Therefore in a three-story building all floors need to be taken into consideration. Omnidirectional antennas may be polarized either vertically or horizontally. Single channel architectures use the same channel for multiple floors.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 3 :
_root.question = "What devices, tools, or programs can be used in a manual site survey? (Choose two.)";
_root.answerA = "Spectrum analyzer";
_root.answerB = "Passive scanning utility";
_root.answerC = "Predictive site analyzer";
_root.answerD = "Association analyzer";
_root.answerE = "Authentication analyzer";
_root.correct = "AB";
_root.explanation = "A spectrum analyzer and a tool that passively scans for wireless networks such as NetStumbler can be used for a manual site survey. The other options association and authentication can be viewed using a protocol analyzer and are not \"stand-alone\" tools.";
_root.figure_flag = "False";
_root.question_type = "5MC";
break;

case 4 :
_root.question = "The manual site survey consists of which possible methods? (Choose two.)";
_root.answerA = "Passive";
_root.answerB = "Scanning";
_root.answerC = "Active";
_root.answerD = "Spectrum";
_root.answerE = "Packet";
_root.correct = "AC";
_root.explanation = "Manual site surveys can be either passive or active. Scanning is a method of locating wireless LANs. A spectrum analyzer will allow you to see the RF. A packet is information that carries computer data from one device to another.";
_root.figure_flag = "False";
_root.question_type = "5MC";
break;

case 5 :
_root.question = "Non-Wi-Fi interference for an 802.11g network can be caused by ________and ___________. (Choose two.)";
_root.answerA = "AM radios";
_root.answerB = "Microwave ovens";
_root.answerC = "802.11b networks";
_root.answerD = "Cordless phones";
_root.answerE = "Radar systems";
_root.answerF = "Digital TV systems";
_root.correct = "BD";
_root.explanation = "Non-Wi-Fi interference is interference by anything other than wireless LANs that operates in the same frequency range. AM radios and digital TV systems do not operate in the license-free bands. 802.11b interference is wireless LAN interference. Radar systems operate in the 5 GHz UNII band.";
_root.figure_flag = "False";
_root.question_type = "6MC";
break;

case 6 :
_root.question = "You are a network consultant hired to perform a manual site survey for a small office building. The wireless network to be installed will use data and voice. For backward compatibility the customer needs to support 2.4 GHz equipment. In order to provide the highest quality of service for the voice application, you recommend that the received signal strength be a minimum of _____________ for a data rate of 54 mbps.";
_root.answerA = "&#8211;20 dBm";
_root.answerB = "&#8211;25 dBm";
_root.answerC = "&#8211;56 dBm";
_root.answerD = "&#8211;67 dBm";
_root.correct = "C";
_root.explanation = "Recommended received signal strength for voice applications in the 2.4 GHz ISM band at a data rate of 54 mbps is about &#8211;56 dBm. A recommended signal-to-noise ratio is less than 20 to 25 dB. &#8211;67 dBm is good for data at 54 mbps.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 7 :
_root.question = "A type of site survey that is software-based, requires minimum time on-site, and takes into consideration the attenuation value of materials such as the type of walls and doors is _______________.";
_root.answerA = "Active";
_root.answerB = "Passive";
_root.answerC = "Predictive";
_root.answerD = "Optional";
_root.correct = "C";
_root.explanation = "A predictive site survey is software-based and takes the attenuation values of the building and other materials into consideration. Active and passive are forms of manual site surveys and record actual information about the site.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 8 :
_root.question = "You are performing a protocol analysis in order to determine potential interference from other wireless LANs in the immediate area of the site survey. You discover several wireless LANs that can potentially cause interference with the proposed installation. Which technology in use would <i>not&nbsp;</i> have an impact on the 802.11g wireless network you are surveying for?";
_root.answerA = "FHSS";
_root.answerB = "OFDM";
_root.answerC = "DSSS";
_root.answerD = "ERP-OFDM";
_root.answerE = "PBCC";
_root.correct = "B";
_root.explanation = "OFDM networks operate in the 5 GHz UNII band and would not affect an 802.11g network that operates in the 2.4 GHz ISM band. FHSS, DSSS, and ERP-OFDM all operate in the 2.4 GHz ISM band and could cause interference with an 802.11g network.";
_root.figure_flag = "False";
_root.question_type = "5R";
break;

case 9 :
_root.question = "You are using a wireless client adapter with a site survey utility and a notebook computer to perform a manual site survey in a very small office building. Which values are important to record to verify proper RF coverage for the location? (Choose two.)";
_root.answerA = "Signal strength";
_root.answerB = "SNR";
_root.answerC = "Packet retries";
_root.answerD = "Signal loss";
_root.answerE = "Propagation loss";
_root.correct = "AB";
_root.explanation = "The signal strength and SNR are two important values to record during the manual site survey process. Signal loss and propagation loss have different effects, and packet retries are more of an issue with dynamic rate selection.";
_root.figure_flag = "False";
_root.question_type = "5MC";
break;

case 10 :
_root.question = "You have been hired by a company to perform a manual site survey. When explaining the difference between a manual and predictive survey, you let the customer know the advantages and disadvantages of each. A manual site survey has which advantage?";
_root.answerA = "Fast";
_root.answerB = "No hardware required";
_root.answerC = "Accurate";
_root.answerD = "Facility access not required";
_root.correct = "C";
_root.explanation = "Manual site surveys can be very accurate because actual readings are taken at the site using test access points and a wireless client. This can take quite some time to complete depending on the size of the location. Wireless hardware is required to perform the site survey, and access to the whole facility is required.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 11 :
_root.question = "A spectrum analyzer can be used to view what?";
_root.answerA = "Radio frequency";
_root.answerB = "Wireless packets";
_root.answerC = "Data rates";
_root.answerD = "Association frames";
_root.correct = "A";
_root.explanation = "A spectrum analyzer can be used to view radio frequency. Wireless packets, data rates, and association frames can be viewed with a protocol analyzer.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 12 :
_root.question = "You have been hired by a company to perform a wireless LAN site survey in a multi-tenant building. You discover numerous access points on channels 1, 6, and 11. In order to optimize the new deployment, what recommendation could you make to the customer? Assume that all new hardware will be purchased and backward compatibility is not required.";
_root.answerA = "Configure the access points to automatic channel selection for the 2.4 GHz ISM band";
_root.answerB = "Configure the access points to operate in the 5 GHz band";
_root.answerC = "Perform a spectrum analysis to find space in the 2.4 GHz band";
_root.answerD = "Perform a predictive site survey to determine which channels to use";
_root.correct = "B";
_root.explanation = "Since new hardware will be purchased and backward compatibility is not required, you could recommend using wireless network hardware that works in the 5 GHz band. This will eliminate interference from the other tenants that are using the 2.4 GHz ISM band. Automatic channel selection, spectrum analysis, and predictive site survey will not help because surrounding access points already use the entire band.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 13 :
_root.question = "Which of the following is true of a predictive modeling survey?";
_root.answerA = "It takes more time than a passive survey to get accurate results.";
_root.answerB = "It takes less time than a passive survey to get accurate results.";
_root.answerC = "It finds areas of interference from neighboring wireless LANs.";
_root.answerD = "It helps you choose the manufacturers equipment to be used for the wireless LAN.";
_root.correct = "B";
_root.explanation = "A predictive modeling site survey will take less time than a passive survey because a passive survey requires a manual analysis. On-site protocol analysis or scanning utility will determine areas of RF interference from wireless LANs. The predictive modeling survey does not help you choose manufacturers equipment to be used in a deployment.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 14 :
_root.question = "When using a predictive site survey approach, which of the following is true about manual verification?";
_root.answerA = "Manual verification never has to be performed.";
_root.answerB = "Manual verification is always required.";
_root.answerC = "Manual verification should be performed only at the customers request.";
_root.answerD = "Manual verification should be performed, but it is not required.";
_root.correct = "D";
_root.explanation = "A verification of the predictive survey should be performed to verify that the survey meets the customers requirements. Although is not required, it should be considered.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 15 :
_root.question = "When performing a manual site survey, choose the best way to identify areas that lack RF coverage?";
_root.answerA = "Mark them with tape so they can be located at a later time";
_root.answerB = "Use a camera to take a photograph and document it in the report";
_root.answerC = "Show the site manager the areas that lack coverage";
_root.answerD = "Document on the floor plans or blueprints";
_root.correct = "D";
_root.explanation = "Dead spots (areas that lack RF coverage) should be identified on floor plans or blueprints. This is part of standard documentation practices. Marking them with tape, taking a photograph, and showing the site manager in person are not the best ways to document dead spots.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 16 :
_root.question = "When a device associates to an access point during a site survey, it is performing what type of survey?";
_root.answerA = "Predictive";
_root.answerB = "Active";
_root.answerC = "Passive";
_root.answerD = "Required";
_root.correct = "B";
_root.explanation = "An active site survey requires the survey device to associate to an access point. A passive site survey monitors all access points in the area. A predictive site survey does not involve associating to an access point. Associating to an access point is not a required part of manual testing.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 17 :
_root.question = "When considering the use of antennas for wireless LAN deployment during a site survey, which antenna could be tested to verify proper coverage for a long hallway or corridor?";
_root.answerA = "High gain omnidirectional";
_root.answerB = "Low gain omnidirectional";
_root.answerC = "Parabolic dish";
_root.answerD = "Yagi";
_root.correct = "D";
_root.explanation = "A semidirectional antenna such as a Yagi is a good choice for an application requiring coverage down a long hallway or corridor. Low or high gain omnidirectional antennas will provide 360-degree horizontal coverage. Parabolic dish antennas are typically used for outdoor long-range bridging.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 18 :
_root.question = "You need to perform a site survey for a small real estate office that currently has no wireless network. Which factors must be considered as part of the site survey?";
_root.answerA = "Spectrum analysis";
_root.answerB = "Packet analysis";
_root.answerC = "Environmental conditions";
_root.answerD = "Correct antenna selection";
_root.correct = "D";
_root.explanation = "In this situation, correct antenna selection is important to provide optimal coverage as well as proper aesthetics. In this example, a spectrum analysis or protocol analysis could be performed but are not required. Environmental conditions are typically not an issue in a small office deployment.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 19 :
_root.question = "Co-channel interference is caused by access points on ______________.";
_root.answerA = "Channels 1 and 1";
_root.answerB = "Channels 1 and 2";
_root.answerC = "Channels 1 and 6";
_root.answerD = "Channels 1, 6, and 11";
_root.correct = "A";
_root.explanation = "Co-channel interference is caused by two access points operating on the same radio frequency channel. Access points operating on channels 1 and 2 may cause adjacent channel interference. Channels 1, 6, and 11 are non-overlapping channels and will not interfere with one another.";
_root.figure_flag = "False";
_root.question_type = "4R";
break;

case 20 :
_root.question = "Which guidelines are recommended when performing a manual site survey? (Choose two.)";
_root.answerA = "Walkthrough of location";
_root.answerB = "Predictive analysis";
_root.answerC = "Equipment purchase";
_root.answerD = "Client device configuration";
_root.answerE = "Spectrum analysis";
_root.correct = "AE";
_root.explanation = "A walkthrough of the location and spectrum analysis are both recommended guidelines when performing a manual site survey. Equipment purchase and client device configuration are additional factors to consider but are not part of the manual site survey. A predictive analysis is a software-based site survey solution that does not require manual testing.";
_root.figure_flag = "False";
_root.question_type = "5MC";
break;

	}
		
	QCounter.QCurrent.text = cur;
}

initialize();


//Change the following question numbers to the indicated question type!
//1. 5MC
//2. 4R
//3. 5MC
//4. 5MC
//5. 6MC
//6. 4R
//7. 4R
//8. 5R
//9. 5MC
//10. 4R
//11. 4R
//12. 4R
//13. 4R
//14. 4R
//15. 4R
//16. 4R
//17. 4R
//18. 4R
//19. 4R
//20. 5MC





//